﻿<div class="content">
                    <!-----Group-01-------->
                   <div class="group-01 width-100">
                        <!-----Noi dung ben trai------->
                        <div class="content-left width-68 float-left">
                                <!-----Hình ảnh món ăn-------->
                              <div class="box width-100">
                                  <div class="box-ctn">
                                      <div class="title">
                                          <div class="bg-title-l"></div>
                                          <div class="bg-title-c"><p><?php echo $this->Title?></p></div>
                                          <div class="bg-title-r"></div>
                                      </div>
                                      <div class="box-text width-92 mar-left-4t">
                                            <?php include('../default/products/views/scripts/index/includes/menu.phpoducts/menu.php');?>
                                            <?php 
                                            $tblCutring	= new Zendvn_File_CutTring();
                                            $items	= $this->Items;
                                            $check	= 1;
                                            if(!empty($items)){
												foreach($items as $key	=> $value){
													$cutTring 	= new Zendvn_File_CutTring();
													$title 		= $value['name'];
													$title 		= str_replace("\\"," ",$title);
													$alt		= $value['name'];
													if(!empty($value['alt_seo'])) $alt = $value['alt_seo'];
													$alt 		= str_replace("\\"," ",$alt);
													
													$summary 	= $value['summary'];
						                    		$summary 	= str_replace("\\"," ",$summary);
										            $summary 	= $cutTring->cutTring(100,$summary,null);
													
													if(!empty($value['picture'])){
								                    	$linkImg	= FILES_URL . '/products/images450x450/' . $value['picture'];
								                    	$picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$alt.'" />';
								                    }else{
								                    	$linkImg	= $this->imgUrl . '/no-image.jpg';
								                    	$picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$alt.'" />';
								                    }
													$urlOptions = array('module'=>'products','controller'=>'index',
																		'action'=>'detail',
																		'nname'=>$value['alias_name'],
																		'title'=>$value['alias'],
						                    							'nid'=> $value['menu_id'],
																		'id'=>$value['id'],
						                   								'lang'=>$lang);
						                   			$linkDetail = $this->url($urlOptions,'products-detail');
						                   			$row = 'row';
						                   			if(($key + 1)%3 == 0)$row = 'row-3';
                                            ?>
                                                <div class="box-news width-31 float-left <?php echo $row?>">
	                                      			 <div class="cnt cnt-food">
	                                                	<div class="bor-img">
	                                                        <a title='<?php echo str_replace("\\"," ",$value['name'])?>' href="<?php echo $linkDetail?>"><?php echo $picture?></a>
	                                                    </div>
	                                                    <div class="desc">
	                                                    	<h2 class="titlet"><a title='<?php echo str_replace("\\"," ",$value['name'])?>' href="<?php echo $linkDetail?>"><?php echo $title?></a></h2>
	                                                    </div>
	                                                </div>
	                                      		</div>
                                                
                                            <?php
												}
											}else{
												echo "<div class='note'>Sản phẩm đang được cập nhật... </div>";
											}
                                            ?>    
                                            <div class="clear"></div>
                                            <!-------Phaan trang-------->
                                            <div class="cur-page width-100">
                                            		<?php
                                            		$paginator = $this->arrParam['paginator'];
                                            		$itemCountPerPage = $paginator['itemCountPerPage'];
                                            		if($this->total > $itemCountPerPage){
                                            			$currentUrl = $this->baseUrl($this->currentController . '/index');
                                            			echo $this->paginationControl($this->panigator,'Sliding','curentpage.phtml',array('currentUrl'=>$currentUrl,'arrParam'=>$this->arrParam));
                                            		}
                                            		?>
                                            </div>

                                            <!-------Phan trang (end)-------->
                                      </div>
                                      <div class="clear"></div>
                                  </div>
                              </div>
                                 <!-----Hình ảnh món ăn-------->


                        </div>
                        <!-----Noi dung ben trai (End)------->

                        <!-----Noi dung ben Phai------->
                        <div class="content-right width-30 float-right">
                             <!--Tin tức nổi bật--->
                              <?php $this->blkHotNews();?>
                              <!--Tin tức nổi bật--->

                              <!--Mẹo vặt--->
                              <?php $this->blkHotTricks();?>		
                              <!--Mẹo vặt--->
                               <div class="clear"></div>
                              <!------Quảng cáo--------->
                              <div class="ads width-100 mar-top-30">
                                   <img src="images/default/quangcao01.png" alt="" title=""/>
                                   <img src="images/default/quangcao02.png" alt="" title=""/>
                              </div>
                              <!------Quảng cáo(end)--------->

                        </div>
                        <!-----Noi dung ben phai(End)------->




                   <div class="clear"></div>
                   </div>
                   <!-----Group-01-------->

                   <div class="clear"></div>

                   <!-----Group-02 (Quang cao)-------->

                   <!-----Group-02 (end)-------->

                    <div class="clear"></div>

                   <!-----Group-03(Mon bgon moi ngay)-------->
                   
                   <!-----Group-03(end)-------->

                   <div class="clear"></div>
            </div>
